<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>顾客列表</title>
<script type="text/javascript">
	var base = "${base}/";
</script>
<!--框架必需-->
<script type="text/javascript" src="${base}/scripts/plugins/jquery-1.7.1.js"></script>
<script type="text/javascript" src="${base}/scripts/framework.js"></script>
<link href="${base}/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link href="${base}/css/sky/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${base}/scripts/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="${base}/scripts/ztree/js/jquery.ztree.core-3.1.js"></script>
<script>
	var setting = {
	data: {
		simpleData: {
			enable: true
		}
	},
	callback: {
		onClick: treeOnClick
	}
};
var zNodes =[
	{ id:1, pId:0, name:"收信箱", open:true},
	{ id:11, pId:1, name:"未读消息", pageUrl:"${base}/admin/sms/listReceive.action?readStatus=false"},
	{ id:12, pId:1, name:"已读消息", pageUrl:"${base}/admin/sms/listReceive.action?readStatus=true"},
	{ id:13, pId:1, name:"私人消息", pageUrl:"${base}/admin/sms/listReceive.action?smsType=1"},
	{ id:14, pId:1, name:"系统消息", pageUrl:"${base}/admin/sms/listReceive.action?smsType=0"},
	{ id:2, pId:0, name:"发信箱", open:true},
	{ id:21, pId:2, name:"已发消息", pageUrl:"${base}/admin/sms/listSend.action"},
	{ id:22, pId:2, name:"写短消息", pageUrl:"${base}/admin/sms/add.action"}
];
function initComplete(){
	$.fn.zTree.init($("#treeDemo"), setting, zNodes);
}
function customHeightSet(){
	$(".cusBoxContent").height($("#scrollContent").height()-50)
}
function treeOnClick(e,treeId, treeNode) {
	if(treeNode.pageUrl!=null){
		//调用方法弹出tab
		 window.frames['frmrightChild'].tabAddHandler(treeNode.id,treeNode.name,treeNode.pageUrl)
	}
}
</script>
</head>
<body>
<div id="scrollContent" childScrollContent="true">
<table width="100%">
	<tr>
		<td class="ver01">
			<div class="box2" overflow="auto" showStatus="false" panelTitle="导航菜单">
				<div class="cusBoxContent" style="width:150px;">
					<ul id="treeDemo" class="ztree"></ul>
				</div>
			</div>
		</td>
		<td width="100%" class="ver01">
			<iframe scrolling="no" width="100%" height="99%" scrolling frameBorder=0 id="frmrightChild" name="frmrightChild" onload="iframeHeight('frmrightChild ')" src="${base}/admin/sms/show.action" allowTransparency="true"></iframe>
		</td>
	</tr>
</table>
</div>
</body>
</html>